<include file="Public:pagerForm" />
<script type="text/javascript">
function reload16() {
    navTab.reload("__URL__", {});
}
function roledbltable(target,rel){
    if( target == 'sid_role'){
    $.pdialog.open("__URL__/edit/id/"+rel+"/sid_role="+rel,"pdialogid", "修改角色", { max:false, mask:true, width: 550, height: 300});
    } 
  }
</script>
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="__URL__" method="post">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>组名：</label>
				<input type="text" name="name" />
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="__URL__/add" target="dialog" mask="true" width="550" height="300"><span>新增</span></a></li>
			<li><a class="delete" href="__URL__/foreverdelete/navTabId/__MODULE__" target="selectedTodo"  postType="string"　title="你确定要删除吗？" warn="请选择角色"><span>删除</span></a></li>
			<li><a class="edit" href="__URL__/edit/id/{sid_role}" target="dialog" mask="true" warn="请选择角色" width="550" height="300"><span>编辑</span></a></li>
		    <li class="line">line</li>
			<li><a class="icon" href="#" onclick="reload16()"><span>刷新</span></a></li>
		</ul>
	</div>

	<table class="table" width="100%" layoutH="138">
		<thead>
		<tr>
		    <th width="20" align="center"><input type="checkbox" group="ids" class="checkboxCtrl"></th>	
			<th width="120" align="center" orderField="name" <if condition="$_REQUEST._order eq 'name'">class="{$_REQUEST._sort}"</if>>组名</th>
			<th width="120" align="center">上级组</th>
			<th width="150" align="center" orderField="status" <if condition="$_REQUEST._order eq 'status'">class="{$_REQUEST._sort}"</if>>状态</th>
			<th align="center">描述</th>
			<th width="150" align="center">操作</th>
		</tr>
		</thead>
		<tbody>
		<volist id="vo" name="list">
			<tr target="sid_role" rel="{$vo['id']}" ondblclick="roledbltable('sid_role',{$vo.id})">
			    <td><input type="checkbox" name="ids" value="{$vo.id}" /></td>
				<td>{$vo['name']}</td>
				<td>{$vo['pid']|getGroupName}</td>
				<td>{$vo['status']|getStatus}</td>
				<td>{$vo['remark']}</td>
				<td>{$vo['status']|showStatus=$vo['id']} <a href="__URL__/app/groupId/{$vo['id']}" target="dialog" mask="true" title="{$vo['name']} 授权 ">授权 </a> <a href="__URL__/user/id/{$vo['id']}" target="dialog" mask="true" title="{$vo['name']} 用户列表 ">用户列表</a></td>
			</tr>
		</volist>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
		  <span>每页</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<eq name="numPerPage" value="24"><option value="24" selected>24</option><else/><option value="24">24</option></eq>
				<eq name="numPerPage" value="50"><option value="50" selected>50</option><else/><option value="50">50</option></eq>
				<eq name="numPerPage" value="100"><option value="100" selected>100</option><else/><option value="100">100</option></eq>
				<eq name="numPerPage" value="200"><option value="200" selected>200</option><else/><option value="200">200</option></eq>
			</select>
			<span>条，共{$totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}"></div>
	</div>
</div>


